package com.ruoyi.project.xcx.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 小程序用户对象 xcx_user
 * 
 * @author ruoyi
 * @date 2020-03-10
 */
public class XcxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** openId */
    @Excel(name = "openId")
    private String openId;

    /** 来源。1微信 */
    @Excel(name = "来源。1微信")
    private Long source;

    /** 新建时间 */
    @Excel(name = "新建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setSource(Long source) 
    {
        this.source = source;
    }

    public Long getSource() 
    {
        return source;
    }
    public void setInsertDate(Date insertDate) 
    {
        this.insertDate = insertDate;
    }

    public Date getInsertDate() 
    {
        return insertDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openId", getOpenId())
            .append("source", getSource())
            .append("insertDate", getInsertDate())
            .toString();
    }
}
